﻿using System;
using System.Runtime.Serialization;

namespace Bookvar.ObjectModel
{
    /// <summary>
    /// Exception class for Bookvar errors. This is the base class for all Bookvar application
    /// specific errors.
    /// </summary>
    [Serializable]
    public class BookvarException : Exception
    {
        // TODO: use BookvarExceptionDefaultMessage key from the resources.
        public BookvarException() : base( "Error while running Bookvar." )
        {
        }

        public BookvarException( string message ) : base( message )
        {
        }

        protected BookvarException( SerializationInfo info, StreamingContext context )
            : base( info, context )
        {
        }

        public BookvarException( string message, Exception innerException )
            : base( message, innerException )
        {
        }
    }
}